#ifndef __RECTANGLE_H__
#define __RECTANGLE_H__

class Rectangle {
public:
    float getArea () const;
    float getPerimeter () const;    

    Rectangle (float height, float width);

    bool setWidth  (const float width);
    bool setHeight (const float height);

private:
    static float validateLength (float length);
    static float validateResult (float result);
    static bool  setLength (float &destination, float length);

    float m_height;
    float m_width;
};

#endif

